
#简单示例
cars = ['audi','bmw','subaru','toyota']
for car in cars:
    if car == 'bmw':
        print(car.upper())
    else:
        print(car.title())

alien_color = 'green'
if alien_color == 'green':
    print('you get 5 points')

if alien_color == 'green':
    print('you get 5 points')
else:
    print('you get 10 points')

    if alien_color == 'green':
        print('you get 5 points')
    elif alien_color == 'yellow':
        print('you get 10 points')
    else:
        print('you get 15 points')


age = 12
if age < 2:
    print('you are a baby')
elif age < 4:
    print('you are a toddler')
elif age < 13:
    print('you are a kid')
elif age < 20:
    print('you are a teenager')
elif age < 65:
    print('you are an adult')
else:
    print('you are an elder')

favorite_fruits = ['apple','banana','orange']
if 'apple' in favorite_fruits:
    print('you really like apple')
if 'banana' in favorite_fruits:
    print('you really like banana')
if 'orange' in favorite_fruits:
    print('you really like orange')

userList = ['admin','eric','jack','micak','tom']
if userList:
    for user in userList:
        if user == 'admin':
            print('Hello admin, would you like to see a status report?')
        else:
            print('Hello ' + user.title() + ', thank you for logging in again.')
else:
    print('We need to find some users!')

current_users = ['admin','eric','jack','micak','tom']
new_users = ['admin', 'micale', 'jonny', 'marry', 'tom']
for new_user in new_users:
    if new_user.lower() in current_users:
        print('you need to input another username')
    else:
        print('the username ' + new_user + ' is available')

